<template>
    <div class="page-container">
        <div>dayjs: {{dayjs(Date.now()).format("YYYY-MM-DD hh:mm:ss")}}</div>
    </div>
</template>

<script setup name="validate">
import { dayjs } from "element-plus";
const { proxy } = getCurrentInstance()
/** Data */
const previewImg = ref({
    show:false,
    url:''
})

/** 生命周期钩子 */
onMounted(()=>{
    demo()
})

/** Method */
function demo() {
    let _ = proxy
    console.log('dayjs-format', dayjs(Date.now()).format("YYYY-MM-DD hh:mm:ss"))
}
</script>

<style lang="less" scoped>
@import "index.less";
</style>
